import request, { Response } from "@/axios";
import { AxiosResponse } from "axios";

interface LoginFrom {
    username: string
    password: string
}
// 登录
export const loginUser = (data: LoginFrom): Promise<AxiosResponse<Response, any>> => {
    return request({
        method: "post",
        url: "/api/login",
        data,
    })
}